

共${model.totalRecordNum}条&nbsp;&nbsp; 共${model.totalPageNum}页  &nbsp;&nbsp;
<#if model.curPageNum=1>
上一页
<#else>
<a href="${requestUrl}?page=${model.curPageNum-1}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}">上一页</a>
</#if>


<#if model.totalPageNum<=10 >
	<#list 1..model.totalPageNum as x>
		<#if model.curPageNum == x >
			<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}"><span class='share_fenyeword'>${x}</span></a>
			<#else>
			<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}">${x}</a>
		</#if>	
	</#list>
	<#else>  <#--总页数大于10时省略页码,用"..."替换-->
		<#if model.curPageNum<3 >  <#-- 当前页码小于3 -->
			<#list 1..model.totalPageNum as x>
			<#if x<4 >
				<#if model.curPageNum == x >
				<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}"><span class='share_fenyeword'>${x}</span></a>
				<#else>
				<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}">${x}</a>
				</#if>	
			</#if>
			</#list>
			<#else>
				<#if model.curPageNum <6 > <#-- 当前页码小于6 -->
					<#list 1..model.totalPageNum as x>
					<#if x<(model.curPageNum+2) >
						<#if model.curPageNum == x >
						<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}"><span class='share_fenyeword'>${x}</span></a>
						<#else>
						<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}">${x}</a>
						</#if>	
					</#if>
					</#list>
					<#else> <#--页码大于等于6的时候-->
						<#if (model.totalPageNum-model.curPageNum)<4 > <#--当前页码接近最大页码-->
								<#list 1..2 as x>
								<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}">${x}</a>
								</#list>
								...
								<#list (model.totalPageNum-4)..model.totalPageNum as x>									
										<#if model.curPageNum == x >
										<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}"><span class='share_fenyeword'>${x}</span></a>
										<#else>
										<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}">${x}</a>
										</#if>									
								</#list>
							<#else>
								<#list 1..2 as x>
								<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}">${x}</a>
								</#list>
								...
								<#list (model.curPageNum-1)..(model.curPageNum+1) as x>
									<#if model.curPageNum == x >
									<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}"><span class='share_fenyeword'>${x}</span></a>
									<#else>
									<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}">${x}</a>
									</#if>	
								</#list>
						</#if>
				</#if>  <#-- 页数小于6 end -->
		</#if> <#-- 页数小于3 end -->
		
		<#if ((model.totalPageNum-model.curPageNum)>=4) >
			...
		<#list 1..model.totalPageNum as x>
			<#if (model.totalPageNum-x)<2 >
				<#if model.curPageNum == x >
				<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}"><span class='share_fenyeword'>${x}</span></a>
				<#else>
				<a href="${requestUrl}?page=${x}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}">${x}</a>
				</#if>
			</#if>	
		</#list>
		</#if>
</#if>

<#if model.curPageNum = model.totalPageNum>
	下一页
	<#else>
	<a href="${requestUrl}?page=${model.curPageNum+1}&amp;keyword=${keywordCode}&amp;catId=${catId?if_exists}">下一页 </a>
</#if>

到第 <input type="text" name="pagenum" width="5" class="plist_input2" onchange = "goto(this);" value ="${model.curPageNum}"/>
页</div><div class="share_fenye_pailie">
排列方式： <a href= "${requestUrl}?keyword=${keywordCode}&amp;style=table&amp;catId=${catId?if_exists}">列表</a> | 
<a href= "${requestUrl}?keyword=${keywordCode}&amp;catId=${catId?if_exists}">图片</a> | 
<a href= "${requestUrl}?keyword=${keywordCode}&amp;style=text&amp;catId=${catId?if_exists}">文字</a></div><div class="share_fenye_paixu"> </div>
<div class="share_fenye_paixu2">

<#--
<select onChange="">
<option value = "b2hprice,desc" >商品价格↓</option>
<option value = "b2hprice,asc" >商品价格↑</option>
<option value = "b2hprice*point_rate,desc" >积分排行↓</option>
<option value = "saletop,desc" >销售排行↓</option>
<option value = "defaultsort,desc"  selected >碧家推荐</option>
 </select>
 -->
 